<!-- 设备表格 -->

<template>
  <div>
    <WebTable path="device" :key="device_readyList">
      <RowCheckbox />
      <RowIndex />
      <RowTitle :label="`${CORE.MAP.ASSET}编号`" bind="assetCode" :width="120" />
      <RowText :label="`${CORE.MAP.ASSET}名称`" bind="assetName" :minWidth="100" />
      <RowTree
        :label="`${CORE.MAP.ASSET}分类`"
        bind="assetTypeId"
        :dict="$root.device_category_treeDict"
        :width="100"
      />
      <RowStatus width="auto" />
      <RowTree :label="`所属${CORE.MAP.ORGAN}`" bind="organizationId" :dict="CORE.ORGAN.DICT" />
      <RowTree :label="`所在${CORE.MAP.REGION}`" bind="areaId" :dict="CORE.REGION.DICT" allName :minWidth="120" />
      <RowOperate :btns="['show']" :onShow="windowDetail" :width="80" />
    </WebTable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DeviceTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('device', 'DetailDevice')],
}
</script>
